<?php
namespace Home\Controller;
use Think\Controller;

use Weixin\Wechat;
use Weixin\WechatAuth;

class CollectionsController extends CommonController {
         
    public function collections(){
    	$collections=M('user_prefe');
        $userid=session('userid');
        $res=$collections->query("select u.act_time ,p.shopname,p.type,p.price,p.address,p.shopimg,p.score from kl_favorite u,kl_buss p where u.buss=p.bs_id and u.user='{$userid}'");
        //dump($res);
        $this->assign('res',$res);
        $this->display('collections');
    }
}